package com.dk.mapper;

import com.dk.pojo.Student;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
@Mapper

public interface StudentMapper {
//    public int AddStu(Student stu);
    public Student Find(String suser);
    public List<Student> FindSt(String name);
    public int Add(@Param("suser")String suser, @Param("name") String name,@Param("age") String age,@Param("classid") String classid,
                   @Param("major") String major, @Param("address") String address, @Param("tele") String tele,@Param("remarks") String remarks);

    public List<Student> FindAll();
    public int Del(String suser);
    public void Xg(Student student);

}
